package br.com.mensures.entitymanager;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;

public class ClienteManager {
/*
	public List<Cliente> listaClientes(Long idMaster) {
		List<Cliente> clientes;
		EntityManager em = JPAUtil.getEntityManager();
		em.getTransaction().begin();
		String jpql = "select c from Cliente c where c.master.cdMaster =:idMaster";
		TypedQuery<Cliente> query = em.createQuery(jpql,Cliente.class);
		query.setParameter("idMaster", idMaster);
		clientes = query.getResultList();
		em.getTransaction().commit();
		em.close();
		
		return clientes;
	}
*/
}
